%{
#include "gac_lang.tab.hh"
%}

%%
[ \t]	;
"available" { return AVAIL; }
"carried" { return CARRIED; }
"do"	{ return DO; }
"exits" { return EXITS; }
"false" { return FALSE; }
"here"	{ return HERE; }
"if"	{ return IF; }
"inv"	{ return INVENTORY; }
"long"	{ return LONG; }
"msg"	{ return MSG; }
"nl"	{ return NEWLINE; }
"not"	{ return NOT; }
"objects" { return OBJECTS; }
"obj1"	{ return OBJ1; }
"posof"	{ return POSOF; }
"short"	{ return SHORT; }
"true"	{ return TRUE; }
"then"	{ return THEN; }
"visited"	{ return VISITED; }
[0-9]+	{ yylval = atoi(yytext); return INT; }
.	{ return yytext[0]; }
%%
